Contents | Index | < Browse | Browse >

LETTERstrrchrULETTER Finds the last occurance of a character in a string.

Overview
#include <string.h>

r = strrchr(s,ch);

char *r;
const char *s;
int ch;

Portability
ANSI

Description
Returns the last occurance of the character "ch" in "s".

Returns
A pointer to the last occurance or NULL.

See also
strchr